package Expe13;

import java.io.UnsupportedEncodingException;
import java.nio.charset.StandardCharsets;

/**
 * @Author 28021
 * @Date 2022/12/6
 */
public class T9 {
    public static void main(String[] args) throws UnsupportedEncodingException {
//        byte d[]="abc 我们喜欢篮球".getBytes("GBK");
        byte d[]="abc 我们喜欢篮球".getBytes();
        System.out.println(d.length);
        String s = new String(d,0,7);
        System.out.println(s);
    }
}
